package com.example.one.service;

import com.example.one.pojo.Wallet;

/**
 * Copyright (C), 2017-2022, MIDOU
 * ClassName: WalletService
 * Author:   pangshu
 * Date:     2022/10/28 18:16
 * Version: 1.0
 * Description:钱包
 */
public interface WalletService {
    /**
     * @Author:pangshu
     * @Description: 支付
     * @Date:21:08 2022/10/28
     * @Param:amount：支付金额，comeId：收款方
     * @return: java.lang.Boolean
     **/
    Boolean pay(Integer payerId,Float amount,Integer comeId);
    /**
     * @Author:pangshu
     * @Description:
     * @Date:21:09 2022/10/28
     * @Param:walletDetailId:订单编号
     * @return: java.lang.Boolean
     **/
    Boolean refund (Integer walletDetailId);

    /**
     * @Author:pangshu
     * @Description: 根据用户ID查询余额信息
     * @Date:21:13 2022/10/28
     * @Param:
     * @return: com.example.one.pojo.Wallet
     **/
    Wallet getBalance(Integer userId);
}
